from Point import *

class Robot:
    
    pos = 0
    rotation = 0
    
    def __init__(self, list):
        self.pos = Point(list[0:2])
        self.rotation = list[2]
        self.rotation = float(self.rotation)
        
    def __str__(self):
        string = str(self.pos)+",  rot = "+str(self.rotation)
        return string
    

class MyRobot (Robot):
    vLeft = 0
    vRight = 0
    
    def __init__(self, list):
        Robot.__init__(self, list)
        
    def __str__(self):
        string = Robot.__str__(self)+",  Vleft = "+str(self.vLeft)+",  Vright = "+str(self.vRight)
        return string
    
    def toSend(self):
        return str(self.vLeft)+":"+str(self.vRight)
        

        
        
     
